This paper explain how to send DinTalk formatted strings on the serial port
(RS-232 or RS-485) of the protocol converter.
There is no distinction between the RS-232 and RS-485 outputs which are
internally connected to one single port.
Name Camera Interface Address The exact address number labeled on the protocol converter. 5333 is for example. Protocol Automatic Bauds 1200, 2400, 4800, 9600, 19200, 38400, 153600 Bits 7 or 8 bits. Parity None, Even or Odd Number Retry The number of times the message will be repeated if no response is received. T1 This is the time waiting a response.[milliseconds] T2 This is the time between a response and the next message.[microseconds]
Use the DinTalk Print Command.
Print <ProtConvID> : "String" [:Variable1] ... [:Variable6]
<ProtConvID> is the serial number of protocol converter.
String is the message to output. The maximum length is 256 characters. The internal FIFO stack of the protocol converter can contain up to 100 strings.
Variable1
to
Variable6 : See " How to insert the value of a variable".
| <CR> Carriage return : | \r |
| <LF> Line Feed: | \n |
| %: | %% |
| Any byte: 02h, 0Dh, 0AAH, ...: | \02, \0d, \aa, ... |
NB: All print commands should be conditionnally triggered (inside an 'if chg')
if up condition then
Print 5408 : "Date : %02d/%02d/%04d %02d:%02d:%02d\r\n": SysDate: SysMonth :SysYear: SysHour : SysMinute : SysSecond
'Date : 01/10/2004 15:31:25
Print 5408 : " Hello world ! \r\n"
'Hello World ! <CR><LF>
Print 5408 :"\02message\03"
'<STX>message<ETX>endif
If the protocol converter is disconnected, the converter detects the absence of communication and an error bus is generated immediately. The alarm programmed for main bus errors (if any) in the controller is started.
In the case of a FIFO buffer overrun error , an event "communication default with the periphery" is generated.
See the cabling diagrams in the general help of the DBM-6000.